//
//  SYDRegisterGroupCell.m
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/8/7.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import "SYDRegisterGroupCell.h"

@implementation SYDRegisterGroupCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
//    self.companyTextfield.placeholderColor = GRAY_COLOR;
//    self.modelsTextfield.placeholderColor = GRAY_COLOR;
//    self.numberTextfield.placeholderColor = GRAY_COLOR;
//    self.containTextfield.placeholderColor = GRAY_COLOR;
//    self.ownTextfield.placeholderColor = GRAY_COLOR;
    
    self.companyTextfield.textColor = TABBAR_COLOR;
    self.modelsTextfield.textColor = TABBAR_COLOR;
    self.numberTextfield.textColor = TABBAR_COLOR;
    self.containTextfield.textColor = TABBAR_COLOR;
    self.ownTextfield.textColor = TABBAR_COLOR;

    [self.companyTextfield.rac_textSignal subscribeNext:^(NSString * _Nullable x) {
        //所属公司
        NSLog(@"所属公司:%@",x);
        [YMSaveTool setObject:x forKey:@"firmBelong"];
    }];
    
    //品牌和型号
    [self.modelsTextfield.rac_textSignal subscribeNext:^(NSString * _Nullable x) {
        NSLog(@"品牌和型号:%@",x);
        [YMSaveTool setObject:x forKey:@"busBrand"];
    }];
    
    [self.numberTextfield.rac_textSignal subscribeNext:^(NSString * _Nullable x) {
        NSLog(@"车牌号:%@",x);
        [YMSaveTool setObject:x forKey:@"busLicensePlate"];
    }];
    
    [self.containTextfield.rac_textSignal subscribeNext:^(NSString * _Nullable x) {
        NSLog(@"荷载:%@",x);
        [YMSaveTool setObject:x forKey:@"passengerCountPermitted"];
    }];
    
    [self.ownTextfield.rac_textSignal subscribeNext:^(NSString * _Nullable x) {
        [YMSaveTool setObject:x forKey:@"busOwner"];
        NSLog(@"所有人:%@",x);
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
